package zunyi03;

/**
 * 汽车类
 */
public class Cat {
    private String color;//颜色
    private String brand;//品牌
    private int tyreNumber;//轮胎个数

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getTyreNumber() {
        return tyreNumber;
    }

    public void setTyreNumber(int tyreNumber) {
        this.tyreNumber = tyreNumber;
    }

    //启动方法
    public void start(){
        System.out.println("车子可以启动");
    }

    //撞人方法
    public void cillide(){
        System.out.println("车子可以撞人");
    }

    //产品信息介绍
    public void products(Cat cat){
        System.out.println("类型："+cat.getBrand());
        System.out.println("颜色："+cat.getColor());
        System.out.println("轮胎个数："+cat.getTyreNumber());
    }
}
